package com.woniuxy.cloud.carl.carlgoods.client;

import com.woniuxy.cloud.carl.carlgoods.client.dto.PropValueDto;
import com.woniuxy.cloud.carl.carlgoods.client.dto.SpuPropDto;
import com.woniuxy.cloud.carl.carlgoods.client.param.AddSpupropParam;
import com.woniuxy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "SpupropClient",name="carlgoods")
public interface SpupropClient {
    @PostMapping("/addpropName")
    public Result addSpuprop(@RequestBody AddSpupropParam param);

    @GetMapping("/listprops")
    public  Result<List<SpuPropDto>> list();
}
